Skip to content

Add Process query_stac#480

Merged
EmileSonneveld merged 6 commits intoOpen-EO:masterfrom
bcdev:bc-query-process
Apr 9, 2026
Merged

Add Process query_stac#480
EmileSonneveld merged 6 commits intoOpen-EO:masterfrom
bcdev:bc-query-process

Conversation

@Hneuschmidt
Copy link
Copy Markdown
Contributor

Adds a new process "query_stac" which is a reduced and simplified version of "load_stac" which skips the "load" part of load_stac -> the items returned by the catalog query are not loaded into a data cube but instead provided as-is.

This is especially useful for processes that bypass the OpenEO data model and work on EO products directly, An example are processes based on OGC Best Practice Earth Observation Application Packages.

This PR is made in the context of integrating the FORCE EO Toolbox into the openeo-geopyspark-driver, in the context of ESA's APEx project. The implementation serves this purpose first, FORCE needs to access EO products in in their raw format. However, the process was deemed general enough to be integrated as a general process.

I am happy to receive any feedback on this PR, including choice of name for the process and placement in the repository.

@jdries @EmileSonneveld

@Hneuschmidt
Copy link
Copy Markdown
Contributor Author

Openeo-geopyspark-driver PR: Open-EO/openeo-geopyspark-driver#1629

@EmileSonneveld
Copy link
Copy Markdown
Member

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c23ca192a4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@EmileSonneveld
Copy link
Copy Markdown
Member

This MR only adds code, so can't really do something wrong. Besides the second review point, this looks good to me

@EmileSonneveld EmileSonneveld marked this pull request as ready for review April 9, 2026 12:04
@EmileSonneveld
Copy link
Copy Markdown
Member

@Hneuschmidt Ok for me to merge already? The MR was in draft...

@Hneuschmidt
Copy link
Copy Markdown
Contributor Author

Yes, we resolved the reasons it was in draft -> can be merged

@EmileSonneveld EmileSonneveld merged commit af25cf0 into Open-EO:master Apr 9, 2026
1 check passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6fa9fe99b6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

def load_stac(self, url: str, load_params: LoadParameters, env: EvalEnv) -> DriverDataCube:
raise NotImplementedError

def query_stac(self, url: str, spatial_extent: Union[Dict, BoundingBox, None], temporal_extent: Tuple[Optional[str], Optional[str]], _env: EvalEnv) -> DriverDataCube:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Align query_stac backend parameter name with caller

ProcessGraphDeserializer.query_stac calls env.backend_implementation.query_stac(..., env=env), but the new backend interface declares the parameter as _env; in Python keyword arguments must match exactly, so backends that inherit the default method (or call super()) will raise TypeError: unexpected keyword argument 'env' instead of the intended NotImplementedError path. This turns unsupported query_stac usage into an internal error rather than a predictable backend capability failure.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants